x86/np2m: refactor p2m_get_nestedp2m()
authorSergey Dyasli <sergey.dyasli@citrix.com>
Tue, 3 Oct 2017 15:20:56 +0000 (16:20 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 6 Oct 2017 12:36:43 +0000 (13:36 +0100)
commita08a9cd3afa6445e0cca055e667c845e318f21f4
tree07f8b24265972393391b80980c42cca533ebabf8
parent2b668a84e52a8999d93c438fb259ddf0ec0f62fe
x86/np2m: refactor p2m_get_nestedp2m()

1. Add a helper function assign_np2m()
2. Remove useless volatile
3. Update function's comment in the header
4. Minor style fixes ('\n' and d)

Signed-off-by: Sergey Dyasli <sergey.dyasli@citrix.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jun Nakajima <jun.nakajima@intel.com>
xen/arch/x86/mm/p2m.c
xen/include/asm-x86/p2m.h